update Users set Valid = 0 where Id in ( select Id from ( select Id from Users where Id < 100 ) as t )